{include file='public/head'}
<body>
<style type="text/css" media="screen">
    header {
        color: black;
    }

    .bianti td {
        text-align: center
    }
    .x-body {
        min-width: 1100px;
    }

    body {
        overflow-x: scroll;
    }
    a {
        cursor:pointer;
    }
    .layui-table img {
        max-width: 150px !important;
        width: 150px;
        height: 100px;
    }
    .btdiv {
        width: 150px;
        float: left;
        margin-right: 10px;
        margin-bottom: 10px;
        border: 1px solid silver;
    }
</style>
<div class="x-body">
    <form class="layui-form" id='mainForm' enctype="multipart/form-data" method="post" action="productEdit">
        <div class="layui-form-item">
            <table class="layui-table">
                <colgroup>
                    <col width="10%">
                    <col width="15%">
                    <col width="10%">
                    <col width="15%">
                    <col width="10%">
                    <col width="15%">
                    <col width="10%">
                    <col width="15%">
                </colgroup>
                <thead>
                <tr>
                    <th colspan="8" style="text-align: center">基本信息</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td><b style="color:red">*</b>产品名称</td>
                    <td colspan="7">{$productInfo.proname}</td>
                </tr>

                <tr>
                    <td><b style="color:red">*</b>产品分类</td>
                    <td colspan="3">{$productInfo.bname}--{$productInfo.platform}</td>
                    <td>品牌</td>
                    <td colspan="3">{$productInfo.brand}</td>
                </tr>

                <tr>
                    <td>币&nbsp;&nbsp;&nbsp;种</td>
                    <td>{$productInfo.coin}</td>
                    <td>SKU码</td>
                    <td>{$productInfo.skucode}</td>
                    <td>产品编号</td>
                    <td>{$productInfo.code}</td>
                    <td>库&nbsp;&nbsp;&nbsp;存</td>
                    <td>{$productInfo.kucun}</td>
                </tr>

                <tr>
                    <td>默认价格</td>
                    <td>{$productInfo.price}</td>
                    <td>销售价格</td>
                    <td>{$productInfo.saleprice}</td>
                    <td>成本价￥</td>
                    <td>{$productInfo.cost}</td>
                    <td>运&nbsp;&nbsp;&nbsp;费</td>
                    <td>{$productInfo.carriage}</td>
                </tr>
                <tr>

                    <td><b style="color:red">*</b>英文简称</td>
                    <td>{$productInfo.english}</td>
                    <td>中文简称</td>
                    <td>{$productInfo.chinese}</td>
                    <td>海关编码</td>
                    <td>{$productInfo.hscode}</td>
                    <td>重&nbsp;&nbsp;&nbsp;量(g)</td>
                    <td>{$productInfo.weight}</td>
                </tr>

                <tr>
                    <td>原产国</td>
                    <td>{$productInfo.origin}</td>
                    <td>厂商名称</td>
                    <td>{$productInfo.facturer}</td>
                    <td>厂商编号</td>
                    <td>{$productInfo.number}</td>
                    <td>适用人群</td>
                    <td>{$productInfo.department}</td>
                </tr>

                <tr>
                    <td>珠宝类型</td>
                    <td>{$productInfo.gem}</td>
                    <td>金属材质</td>
                    <td>{$productInfo.metal}</td>
                    <td>材料</td>
                    <td>{$productInfo.material}</td>
                    <td>包装材料</td>
                    <td>{$productInfo.package}</td>
                </tr>

                <tr>
                    <td>来&nbsp;&nbsp;&nbsp;源</td>
                    <td colspan="7">{$productInfo.fromurl}</td>
                </tr>

                <tr>
                    <td>卖&nbsp;&nbsp;&nbsp;点</td>
                    <td colspan="7"><textarea class="layui-textarea" readonly>{$productInfo.sketch}</textarea></td>
                </tr>

                <tr>
                    <td>关键词</td>
                    <td colspan="7"><textarea class="layui-textarea" readonly>{$productInfo.keywords}</textarea></td>
                </tr>

                <tr>
                    <td>产品描述</td>
                    <td colspan="7"><textarea class="layui-textarea" readonly>{$productInfo.content}</textarea></td>
                </tr>

                </tbody>
            </table>
        </div>
        <div class="layui-form-item">
            <table class="layui-table">
                <thead>
                <tr>
                    <th style="text-align: center">主产品图片</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td style="text-align: center">
                        <div id="productimg">
                            {volist name="productInfo['imgs']" id='vo'}
                            <div class="btdiv">
                                <img src="{$vo['resource']['path']}" onclick="previewImg(this)">
                            </div>
                            {/volist}
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="layui-form-item">
            <table class="layui-table bianti" id="mdiv">
                <colgroup>
                    <col>
                    <col width="12%">
                    <col width="12%">
                    <col width="12%">
                    <col width="12%">
                    <col width="12%">
                </colgroup>
                <thead>
                <tr><th colspan="8" style="text-align: center">商品变体与价格</th></tr>
                </thead>
                <tbody>
                <tr>
                    <th style="text-align: center"><b style="color:red">*</b>变体类名</th>
                    <th colspan="7">{$productInfo.btname}</th>
                </tr>
                <tr style="background-color: #F2F2F2">
                    <td><span style="color: red">*</span>变体名，双变体用","隔开</td>
                    <td>默认价格</td>
                    <td><span style="color: red">*</span>销售价格</td>
                    <td>成本价</td>
                    <td>运费</td>
                    <td>库存数量</td>
                </tr>
                </tbody>
                {php}$m=0;{/php}
                {volist name="productInfo['shuxing']" id='vo'}
                {php}$m++;{/php}
                <tbody>
                <tr>
                    <td>{$vo.cname}</td>
                    <td>{$vo.price}</td>
                    <td>{$vo.saleprice}</td>
                    <td>{$vo.cost}</td>
                    <td>{$vo.carriage}</td>
                    <td>{$vo.kucun}</td>
                </tr>
                <tr>
                    <td colspan="6">
                        <div id="myimg{$m}">
                            {if isset($vo['imgs'])}
                            {volist name="vo['imgs']" id='v'}
                            <div class="btdiv">
                                <img src="{$v.path}" style="float: left;" onclick="previewImg(this)">
                            </div>
                            {/volist}
                            {/if}
                        </div>
                    </td>
                </tr>
                </tbody>
                {/volist}
            </table>
        </div>
    </form>
</div>
</body>
{include file='public/foot'}